package com.blyat.xsoft.gateway.restful.entity;

import com.blyat.xsoft.gateway.ribbon.loadbalancer.server.XSoftServer;
import com.blyat.xsoft.kernel.restful.entity.BaseEntity;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * @Auther: syh
 * @Date: 2020/9/14
 * @Description:
 */
@Alias("server")
public class Server extends XSoftServer implements BaseEntity {

    private String id;

    private String host;

    private int port;

    private String schema;

    private int weight;

    private String balancer;

    private Integer status;

    private Date created;

    private String creator;

    private Date modified;

    private String modifier;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getHost() {
        return host;
    }

    @Override
    public void setHost(String host) {
        this.host = host;
    }

    @Override
    public int getPort() {
        return port;
    }

    @Override
    public void setPort(int port) {
        this.port = port;
    }

    public String getSchema() {
        return schema;
    }

    public void setSchema(String scheme) {
        this.schema = scheme;
    }

    @Override
    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getBalancer() {
        return balancer;
    }

    public void setBalancer(String balancer) {
        this.balancer = balancer;
    }

    @Override
    public Integer getStatus() {
        return status;
    }

    @Override
    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public Date getCreated() {
        return created;
    }

    @Override
    public void setCreated(Date created) {
        this.created = created;
    }

    @Override
    public String getCreator() {
        return creator;
    }

    @Override
    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    public Date getModified() {
        return modified;
    }

    @Override
    public void setModified(Date modified) {
        this.modified = modified;
    }

    @Override
    public String getModifier() {
        return modifier;
    }

    @Override
    public void setModifier(String modifier) {
        this.modifier = modifier;
    }
}
